const webpack = require('webpack');
const path = require('path');

module.exports = {

	devtool:"source-map",
    mode: "development",
	entry: {
        // list:'./src/list.js',
        // list2:'./src/list2.js',
        // list3:'./src/list3.js',
        // time:'./src/time.js',
        // event:'./src/event.js',
        // myevent:'./src/myevent.js',
        // custom:'./src/cumtomEvent.js',
        // list4:'./src/list4.js',
        // form:'./src/form.js',
        // tabs:'./src/tabs.js',
        // lr:'./src/lr.js',
        // router:'./src/router/app.js',
        // uilist:'./src/uilist/UIListApp.js',
        // one: './src/one.js',
        // two: './src/two.js',
        // three : './src/three.js',
        // four : './src/four.js'
        // all : './src/all.js',
        test : './src/test/testApp.js'
    },

	output: {
		filename: '[name].js',
		path: path.join(__dirname, 'dist')
	},

	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: 'babel-loader',

				options: {
					presets: ["react",'env']
				}
			}
		]
	},

	devServer:{
		contentBase:'./dist'
	}
};
